<template>
  <div>
    <ZgEdit
      ref="dialog"
      :columns="columns"
      :formulas="formulas"
      :inputClick="inputClick"
      validUrl=""
      saveUrl=""
      :view="view"
      @ok="$emit('ok')"
    >
    </ZgEdit>
  </div>
</template>
<script>
export default {
  data() {
    return {
      view: {
        width: '60%',
        top: '3%',
        title: ''
      },
      columns: [],
      formulas: []
    }
  },
  methods: {
    open(obj, pageType) {
      if (pageType === 'details') {
        this.$refs.dialog.open(obj)
        this.view.title = '审核详情'
      } else {
        this.$refs.dialog.open()
        this.view.title = '审核'
      }
    },
    inputClick(t) {
      alert(JSON.stringify(t))
    }
  }
}
</script>

<style lang="scss" scoped></style>
